package com.diannuo.springboot.dao;

import com.diannuo.springboot.configuration.TestMapper;
import com.diannuo.springboot.model.User;
import com.gitee.target123.develop.mysql.annotation.InsertRedisLock;

/**
 * Created on 2019-11-04
 */
public interface UserMapper extends TestMapper<User> {

    @InsertRedisLock(keyPrefix = "test:",keyProperty = "username")
    int insertTest(User user);
}